const { Source } = require('@/models/model')
const { dumpCheck } = require('./dumpCheck')

module.exports.arrayToTree = (items) => {
  const result = []

  const map = {}

  items.forEach((item) => {
    map[item.parentLevel] = item
  })

  items.forEach((item) => {
    items.forEach((v) => {
      if (v.parentLevel.startsWith(item.parentLevel)) {
      }
    })
  })

  return result
}
